package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.SysYongyouCgfp;
import org.apache.ibatis.annotations.Param;

/**
 * 采购发票Mapper接口
 * 
 * @author SYF
 * @date 2025-04-18
 */
public interface SysYongyouCgfpMapper 
{
    /**
     * 查询采购发票
     * 
     * @param vouchdate 采购发票主键
     * @return 采购发票
     */
    public SysYongyouCgfp selectSysYongyouCgfpByVouchdate(String vouchdate);

    /**
     * 查询采购发票列表
     * 
     * @param sysYongyouCgfp 采购发票
     * @return 采购发票集合
     */
    public List<SysYongyouCgfp> selectSysYongyouCgfpList(SysYongyouCgfp sysYongyouCgfp);

    /**
     * 新增采购发票
     * 
     * @param sysYongyouCgfp 采购发票
     * @return 结果
     */
    public int insertSysYongyouCgfp(SysYongyouCgfp sysYongyouCgfp);

    /**
     * 修改采购发票
     * 
     * @param sysYongyouCgfp 采购发票
     * @return 结果
     */
    public int updateSysYongyouCgfp(SysYongyouCgfp sysYongyouCgfp);

    /**
     * 删除采购发票
     * 
     * @param vouchdate 采购发票主键
     * @return 结果
     */
    public int deleteSysYongyouCgfpByVouchdate(String vouchdate);

    /**
     * 批量删除采购发票
     * 
     * @param vouchdates 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysYongyouCgfpByVouchdates(String[] vouchdates);

    public int deleteYongyouCgfpByDateRange(@Param("vouchdate") String startDate);
}
